<?php

namespace app\api\model;


class UserImg extends Common
{
    static public function lists($list)
    {
        if (!$list) return [];

        $data = self::where(['user_id' => ['in', $list]])->group('user_id')->column('user_id, count(*) count');

        return $data;
    }
}
